<?php
namespace Admin\Controller\Admin;
use Admin\Model\AuthorityModel;
use Think\Controller;
use Think\Model;

class LoginController extends Controller {
    public function _empty($name){
        //把所有城市的操作解析到city方法
        echo 404;
    }
    public function index()
    {
        $this->show("123");
    }
    public function login(){
        $name=I("name");

    }
    public function admin(){
//        $name['title']=123;
//        $name = 'ThinkPHP';
//        $this->assign('name',$name);
        $authority=D('Authority');
        $authority_array_first=$authority->get_authority_first_by_userid();
        $authority_array_second=$authority->get_authority_second_by_userid();
        $this->assign('authority_array_first',$authority_array_first);
        $this->assign('authority_array_second',$authority_array_second);
        $this->display();
    }

    public function test(){
        $this->show("bbbbbbbbbbbbbbbbbbbbb");
    }
}